﻿#ifndef AUTHORITYSERVICE_H
#define AUTHORITYSERVICE_H

#include <QObject>
#include "authoritydao.h"

class AuthorityService : public QObject
{
    Q_OBJECT
public:
    explicit AuthorityService(QObject *parent = nullptr);
    ~AuthorityService();
    bool getList(QList<Authority> &list);
    bool getOne(Authority &object);
    bool saveOne(Authority &object);
    bool deleteOne(Authority &object);
private:
    QSqlDatabase db;

};

#endif // AUTHORITYSERVICE_H
